/**
* Copyright @ 2023 iAuto (Shanghai) Co., Ltd.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are NOT permitted except as agreed by
* iAuto (Shanghai) Co., Ltd.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/


import { Dispatch } from 'redux';
import { anyObj, anyFunc, anyFuncRes } from '@/types/components'
export interface dispatchProps {
    dispatch?: Dispatch,
    setLoading?: anyFunc,
}
export interface recordsProps extends dispatchProps {
    // 激活ｔａｂｓ页板标签ｉｄ
    activeKey?: number | string,
    pagination?: anyObj,
    // 车型车系ｍａｐ
    carMap?: anyObj,
    // 服务列表数据
    dataSource?: anyObj[],
    task?: anyObj,
    searchRef?: anyObj,
    setActiveKey?: anyFunc,
}
export interface servelistChildProps {
    // 展示行数据
    itemRow: anyObj,
    // 抽屉控制
    itemRowDrawer: boolean,
    // 车型车系ｍａｐ
    carMap?: anyObj,
    setItemRowDrawer: anyFuncRes<boolean>,
}
// 查询组件入参属性
export interface searchFormProps extends dispatchProps {
    emitCarSysVersion?: anyFunc,
    carSysVersion: string,
    buttoms: React.ReactNode,
    status?: number,
    setUnpublishTotal?: anyFunc,
    unpublishTotal?: number,
    setCarMap?: anyFunc,
    carMap?: anyObj,
    getTableList?: anyFunc,
    allOptionNum?: boolean,
    allOptionDot?: boolean,
    loadingActive?: boolean,
    SMLoad?: boolean,
}
export interface btnModalProps {
    submitModal: anyFunc,
    btnModalShow: boolean,
    cDisabled?: boolean,
    btnsText?: anyObj,
    setBtnModalShow: anyFunc,
    titleModal?: string,
    modalWinProps?: anyObj,
    children?: React.ReactNode,
}
// 服务导入组件入参属性
export interface inportFileProps extends btnModalProps {
    showModal: boolean,
    setShowModal: anyFunc,
    carListCascader?: any[],
    btnLoading: boolean,
}